package de.koller.nadir.render;

import de.koller.nadir.NNode;
import de.koller.oceanFramework.math.RVec3;
import org.lwjgl.opengl.GL11;

public class NCamera extends NNode {
	
	public float scale = 2f;
	public final RVec3 position = new RVec3();
	
	public void transform() {
		GL11.glPushMatrix();
		GL11.glScalef( scale, scale, scale );
		GL11.glTranslatef( position.x, position.y, position.z );
	}
	
	public void restore() {
		GL11.glPopMatrix();
	}
	
	public void moveCamera( float x, float y ) {
		position.x += x / scale;
		position.y -= y / scale;
	}
	
}
